package com.shuyuwl.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.stream.Collectors;

/**
 * 选中导出使用
 *
 * @author liaokx
 * @date 2019/11/26 11:40
 */
@Data
public class ExcelExportVo implements Serializable {
    private List<Long> ids;
    private String name;

    public List<Long> getIds() {
        return ids;
    }

    public List<Integer> getIds(boolean isLong) {
        return ids.stream().map(id -> {
            return id.intValue();
        }).collect(Collectors.toList());
    }
}
